package com.cloud.DrugManagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cloud.DrugManagement.pojo.ReceiptHeader;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @author zhozixiong
 * @date 2023/02/19
 */
@Mapper
@Repository
public interface ReceiptHeaderMapper extends BaseMapper<ReceiptHeader> {

    int insert(long oid);

    Page<ReceiptHeader> searchAllOrOid(Page page, @Param("oid") Long oid);

    ReceiptHeader searchAllByOid(@Param("oid") Long oid);

    int updateTimeAndSigneeByOid(@Param("time") Date time, @Param("signee") String signee, @Param("oid") Long oid);
}
